<?php
use app\api\widget\DocWidget;
$dir = Yii::getAlias('@app/api/interfaces');

echo DocWidget::widget([
    'dir'=>$dir,
    'namespace'=>'app\api\interfaces'
]);
?>